package com.example.demon.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.Data;

@TableName("user")
@Builder
@Data
public class User {

    @TableId(value = "user_id", type = IdType.ASSIGN_ID)
    private Long id;

    @TableField("user_name")
    private String name;

    @TableField("user_sex")
    private String sex;

    @TableField("user_phone")
    private String phone;

    @TableField("user_avatar")
    private String avatarUrl;

    @TableField("open_id")
    private String openid;

    @TableField("violations")
    private Integer violation;
}
